package cn.qiao.demo;

/**
 * desc:
 *
 * @author qiao
 * @date 2023年04月12日 13:58
 */
public class StringDemo {
    public static String a1 = "a";
    public static String b1 = "b";
    public static String c1 = "ab";
    public final static String a2 = "a";
    public final static String b2 = "b";
    public static void main(String[] args) {


        String a = "a";
        String b = "b";
        String c = "ab";
        String s = a+b;
        String s1 = a1 + b1;
        String s2 = a2 + b2;

        String k = get(a,b);
        String k1 = get(a2,b2);
        System.out.println(a1 == a);
        System.out.println(s1 == s);
        System.out.println(s2 == s);
        System.out.println(k ==c);
        System.out.println(k1 ==c);


    }

    public static String get(String a, String b){
        return a+b;
    }





}
